#include "XServiceHandle.h"

void XServiceHandle::set_client_ip(const char *ip)
{
    if(ip == NULL)
        return;
    memset(client_ip_, 0, sizeof(client_ip_));
    strncpy(client_ip_, ip, sizeof(ip)<=sizeof(client_ip_)?sizeof(ip):sizeof(client_ip_));
}